<?
require("includes/constants.php");
require("includes/funciones.inc.php");

session_start();
if(!isset($_SESSION['nombreUsuario']))
	exit();

?>
<div class="form_settings">
	<form id="articulosPopForm" name="articulosPopForm" method="post">
		<p>
			<span>Cod. Producto</span>
			<input id="codProducto" name="codProducto" type="text">
		</p>
		<p>
			<span>Nombre Facturaci&oacute;n</span>
			<input id="nombreFacturacion" name="nombreFacturacion" type="text">
		</p>
		<p>
			<span>Grupo de Producto</span>
			<input id="grupoProducto" name="grupoProducto" type="text">
		</p>
		<p>
			<span>Unidad de Compra</span>
			<select id="cmbUnidadCompra" name="cmbUnidadCompra"></select>
		</p>
		<p>
			<span>Precio</span>
			<input id="precio" name="precio" class="numeric" type="text"  style="width: 88px">
		</p>
		<p>
			<span>Alicuota</span>
			<select id="cmbAlicuota" name="cmbAlicuota"></select>
		</p>
		<p>
			<span>Mts. Pieza</span>
			<input id="mtsPieza" name="mtsPieza" class="numeric" type="text"  style="width: 88px">
		</p>
		<p>
			<span>Imagen/Foto</span>
			<input class="submit" type="button" name="btnCargar" id="btnCargar" value="Cargar Foto" />
			<input class="submit" type="button" name="btnVer" id="btnVer" value="Ver Foto" />
			<input type="file" id="imageFile" name="imageFile" style="display: none" />
		</p>
		<p>
			<span>Variedades</span>
		</p>
		<table class="tblPopUp">
			<tr>
				<th>#1</th>
				<th>#2</th>
				<th>#3</th>
				<th>#4</th>
				<th>#5</th>
				<th>#6</th>
				<th>#7</th>
				<th>#8</th>
				<th>#9</th>
				<th>#10</th>
			</tr>
			<tr>
				<td><input type="checkbox" id="#1" name="#1" class="1"/></td>
				<td><input type="checkbox" id="#2" name="#2" class="2"/></td>
				<td><input type="checkbox" id="#3" name="#3" class="3"/></td>
				<td><input type="checkbox" id="#4" name="#4" class="4"/></td>
				<td><input type="checkbox" id="#5" name="#5" class="5"/></td>
				<td><input type="checkbox" id="#6" name="#6" class="6"/></td>
				<td><input type="checkbox" id="#7" name="#7" class="7"/></td>
				<td><input type="checkbox" id="#8" name="#8" class="8"/></td>
				<td><input type="checkbox" id="#9" name="#9" class="9"/></td>
				<td><input type="checkbox" id="#10" name="#10" class="10"/></td>
			</tr>
			<tr>
				<td><input type="text" id="can#1" name="can#1" class="numeric can1" style="width: 50px;"/></td>
				<td><input type="text" id="can#2" name="can#2" class="numeric can2" style="width: 50px;"/></td>
				<td><input type="text" id="can#3" name="can#3" class="numeric can3" style="width: 50px;"/></td>
				<td><input type="text" id="can#4" name="can#4" class="numeric can4" style="width: 50px;"/></td>
				<td><input type="text" id="can#5" name="can#5" class="numeric can5" style="width: 50px;"/></td>
				<td><input type="text" id="can#6" name="can#6" class="numeric can6" style="width: 50px;"/></td>
				<td><input type="text" id="can#7" name="can#7" class="numeric can7" style="width: 50px;"/></td>
				<td><input type="text" id="can#8" name="can#8" class="numeric can8" style="width: 50px;"/></td>
				<td><input type="text" id="can#9" name="can#9" class="numeric can9" style="width: 50px;"/></td>
				<td><input type="text" id="can#10" name="can#10" class="numeric can10" style="width: 50px;"/></td>
			</tr>
		</table>
		<table id="tblInsumos" class="tblPopUp">
			<thead>
				<tr>
					<th>Insumo</th>
					<th>Unidad</th>
					<th>Cantidad</th>
				</tr>
			</thead>
			<tbody>
				<?for ($i = 1; $i <= 10; $i++) {?>
				<tr>
					<td><input type="text" id="insumo<?=$i?>" name="insumo<?=$i?>"/></td>
					<td><input type="text" id="unidad<?=$i?>" name="unidad<?=$i?>"/></td>
					<td><input type="text" id="cantidad<?=$i?>" name="cantidad<?=$i?>" class="numeric"/></td>
				</tr>
				<?}?>
			</tbody>
		</table>
		<p style="padding-top: 15px; float: right;">
			<input class="submit" type="button" name="btnGuardar" id="btnGuardar" value="Guardar" />
			<input class="submit" type="button" name="btnCerrar" id="btnCerrar" value="Cerrar" />
		</p>
	</form>
</div>

<!-- PopUp Articulos Foto Dialog -->
<div id="articulosFotoDialog"></div>

<script>
	$(document).ready(function() {
		$_initPop();
	});
</script>

